package com.jic.product.mapper;

import com.jic.product.entity.CategoryMerchantRelation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商家店铺类目关联表
 * @author : 
 * @email : 
 * @since : 2020-08-14 10:33:16
 * @version : v1.0.0
 */
@Mapper
public interface  CategoryMerchantRelationMapper {

    long insert(CategoryMerchantRelation categoryMerchantRelation);

    long delete(Long id);

    long update(CategoryMerchantRelation categoryMerchantRelation);

    CategoryMerchantRelation queryByPrimaryKey(Long id);

    List<CategoryMerchantRelation> query(CategoryMerchantRelation categoryMerchantRelation);

    List<CategoryMerchantRelation> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("categoryMerchantRelation") CategoryMerchantRelation categoryMerchantRelation);

    long queryPageCount(CategoryMerchantRelation categoryMerchantRelation);
}